{% raw %}{% load static i18n {% endraw %} {%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}compress {%- endif %}{% raw %}%}{% endraw %} {%- if cookiecutter.frontend_pipeline == 'Webpack' %}{% raw %}{% load render_bundle from webpack_loader %}{% endraw %} {%- endif %}{% raw %} {% get_current_language as LANGUAGE_CODE %} {% block title %}{% endraw %}{{ cookiecutter.project_name }}{% raw %}{% endblock title %} {% block css %} {%- endraw %} {%- if cookiecutter.frontend_pipeline in ['None', 'Django Compressor'] %} {%- raw %} {%- endraw %} {%- endif %} {%- raw %} {%- endraw %}{% if cookiecutter.frontend_pipeline == 'None' %}{% raw %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == 'Django Compressor' %}{% raw %} {% compress css %} {% endcompress %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == 'Gulp' %}{% raw %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == "Webpack" %}{% raw %} {% render_bundle 'project' 'css' %} {%- endraw %}{% endif %}{% raw %} {% endblock %} {# Placed at the top of the document so pages load faster with defer #} {% block javascript %} {%- endraw %}{% if cookiecutter.frontend_pipeline == 'Gulp' %}{% raw %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == "Webpack" %}{% raw %} {% render_bundle 'vendors' 'js' attrs='defer' %} {%- endraw %}{% else %}{% raw %} {%- endraw %}{% endif %}{% raw %} {%- endraw %}{% if cookiecutter.frontend_pipeline == 'None' %}{% raw %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == 'Django Compressor' %}{% raw %} {% compress js %} {% endcompress %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == 'Gulp' %}{% raw %} {%- endraw %}{% elif cookiecutter.frontend_pipeline == "Webpack" %}{% raw %} {% render_bundle 'project' 'js' attrs='defer' %} {%- endraw %}{% endif %}{% raw %} {% endblock javascript %}
{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% block content %}

Use this document as a way to quick start any new project.

{% endblock content %}
{% block modal %}{% endblock modal %} {% block inline_javascript %} {% comment %} Script tags with only code, no src (defer by default). To run with a "defer" so that you run inline code: {% endcomment %} {% endblock inline_javascript %} {%- endraw %}